<!DOCTYPE html>
<html lang="zh_CN" class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查看邮件</title>
    <header th:replace="header::html"></header>
</head>
<body>
<div class="x-body">
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <form class="layui-form" id="mailForm">
                            <div class="layui-form-item">
                                <label class="layui-form-label">收件人：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="address" th:value="${sysMailInfo.address}"
                                           lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">主 题：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="title" th:value="${sysMailInfo.title}"
                                           lay-verify="required" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">发送内容：</label>
                                <div id="mycontent" class="layui-input-block">
                                    <input type="hidden" id="content" th:value="${sysMailInfo.content}" class="layui-input">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.extend({
        tinymce: '{/}/xadmin/lib/tinymce/tinymce'
    }).use(['tinymce', 'jquery'], function () {
        var tinymce = layui.tinymce,
            $ = layui.jquery;
        //获取内容
        $('#mycontent').html($("#content").val());
    });
</script>
</html>